fix(Pulsar): Support Apache Pulsar 4#1355
fix(Pulsar): Support Apache Pulsar 4#1355HofmeisterAn merged 2 commits intotestcontainers:developfrom
Conversation
Replaced deprecated script arguments with updated ones to ensure proper configuration handling. Updated Pulsar image to version 3.0.8 and modified default file paths for better alignment with expected conventions.
✅ Deploy Preview for testcontainers-dotnet ready!
To edit notification comments on pull requests, go to your Netlify site configuration. |
HofmeisterAn
left a comment
There was a problem hiding this comment.
Thanks for the PR! It looks like this PR relates to #1294 but with fewer necessary changes 👍.
@HofmeisterAn, would you prefer that I configure the tests to explicitly validate against both image versions (e.g., 3.0.X and 4.0.X), or is it sufficient to test exclusively with the latest default version (
3.0.X)? Let me know how you'd like to proceed.
Usually, we test both versions if they are not compatible. We follow this pattern, which should be easy to apply to PulsarContainerTest. I believe we just need to inherit from PulsarContainerTest:
Extending the tests would be great.
Sure, I'll do that. So we know that the two LTS versions work. |
Update the default Pulsar image to version 3.0.9 in the builder. Introduce two new test cases using Pulsar LTS 4.0.2: one for default configuration and another for authenticated configuration.
What does this PR do?
Why is it important?
The new Apache Pulsar 4.0.X container image enforces stricter security by reducing user privileges. As a result, the
secret.keyfile needs to be created in a location that can be written to in both 3.0.X and 4.0.X versions.This change ensures backward compatibility, which is a core principle of Testcontainers, while also taking advantage of the latest improvements in Pulsar 4.0.X.
How to test this PR
Open Question
@HofmeisterAn, would you prefer that I configure the tests to explicitly validate against both image versions (e.g., 3.0.X and 4.0.X), or is it sufficient to test exclusively with the latest default version (
3.0.X)? Let me know how you'd like to proceed.